package com.twu.biblioteca.dao;

import com.twu.biblioteca.IUserDao;
import com.twu.biblioteca.modal.User;

import java.util.ArrayList;
import java.util.List;

public class MemoryUserDao implements IUserDao {
    private List<User> users;

    public MemoryUserDao() {
        users = new ArrayList<User>();

        users.add(new User("123-1234", "123456", "name", "email", "phone"));
        users.add(new User("123-1235", "223456", "name", "email", "phone"));
        users.add(new User("123-1236", "323456", "name", "email", "phone"));
    }

    @Override
    public List<User> getUsers() {
        return users;
    }
}
